﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<TireBias.Models.TailModel.TailBias_DS>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    GET_INF_STD
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <style type="text/css">
.cell
{
   line-height:35px !important;
 
}
.col
{ font-weight:bolder;
  
   padding: 3px 0px 3px 100px !important; 
   width: 50% !important; 
   text-align: left !important;
   background-color:#ccc !important;
}
</style>
 <% var md = Model.First();
    var second = new TireBias.Models.TailModel.TailBias_DS();
    
    if (Model.Count() > 1)
    {
       second = Model.ElementAt(1);
    }
    %>
<%
    var srcPDF = Url.Action("GetPDF_File") + "?nm=" + md._stdFile + "&sub=" + md._stdSubFd + "&isSample=" + WinNemoLib.StrUtil.IsNotEmpty(md._sampflag) ;
 %>



<table class="shadow" style=" width: 98%">
      <% if (WinNemoLib.StrUtil.IsNotEmpty(md._Text))
         {%>
      <tr>
         <td class="cell" style="font-size: x-large;line-height: 30px; 
            padding: 5px; background-color: #C38DEC; color: #FFFFFF;" colspan="2">
            <%= md._Text%>
         </td>
      </tr>
      <%} %>
      <tr class="rowb">
         <td class="head cell text-right" style="vertical-align: top; width:50%">                    
                <iframe src='<%=srcPDF%>' height="680px" width="100%"></iframe>
         
         </td>
         <td style="vertical-align:top;">
  
            <table width="100%" style="height:100%">
            <tr> 
<td class="col cell" style="padding: 10px 0px; width: 25%;">
DATE-SEQ
<span class="fontTh">ล็อตที่ผลิต</span>
</td>
<td class="cell" id="seqDT">
<h3><%= md._plandt %>-<%=md._itemno %></h3>  
</td>
</tr>
 <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            SIZE
            <span class="fontTh">ขนาดผ้าใบ</span>
         </td>
         <td class="cell" id="Td1">
         <h3> <%= md._sizes %></h3>  
         </td>
      </tr>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            FORMING
           
            <span class="fontTh">เครื่องที่สร้าง</span>
         </td>
         <td class="cell" id="Td2">
        <h3>   <%= md._forming %></h3> 
         </td>
      </tr>
     
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            Topped Cord
            
            <span class="fontTh">ผ้าใบ</span>
         </td>
         <td class="cell" id="Td7">
         <h3>  <%= md._topcrdcd%></h3> 
         </td>
      </tr>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            Tire Cord Lot
         
            <span class="fontTh">ล็อตผ้าใบ</span>
         </td>
         <td class="cell" id="Td8">
         <h3>  <%= md._toplot %></h3> 
         </td>
      </tr>      
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
           Expired date
       
            <span class="fontTh">วันหมดอายุ</span>
         </td>
         <td class="cell">
         <h3>  <%= md._topexp %></h3> 
         </td>
      </tr>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
         Length (M.)
            
            <span class="fontTh">ความยาว(เมตร)</span>
         </td>
         <td class="cell" >
         <h3>  <%= md._toplen %></h3> 
         </td>
      </tr>

            <% if (WinNemoLib.StrUtil.IsNotEmpty(md._P1))
         { %>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            P1
          
            <span class="fontTh">ความยาวผ้าใบชั้นที่ 1 (มม.)</span>
         </td>
         <td class=" cell" id="Td3">
     <h3>  <%= md._P1%></h3>     
         </td>
      </tr>
      <% } %>
      <% if (WinNemoLib.StrUtil.IsNotEmpty(md._P2))
         { %>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            P2
            
            <span class="fontTh">ความยาวผ้าใบชั้นที่ 2 (มม.)</span>
         </td>
         <td class="cell" id="Td4">
        <h3>   <%= md._P2%></h3> 
         </td>
      </tr>
      <% } %>
      <% if (WinNemoLib.StrUtil.IsNotEmpty(md._P3))
         { %>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            P3
         
            <span class="fontTh">ความยาวผ้าใบชั้นที่ 3 (มม.)</span>
         </td>
         <td class="cell" id="Td5">
           <h3> <%= md._P3%></h3>
         </td>
      </tr>
      <% } %>
      <% if (WinNemoLib.StrUtil.IsNotEmpty(md._P4))
         { %>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            P4
          
            <span class="fontTh">ความยาวผ้าใบชั้นที่ 4 (มม.)</span>
         </td>
         <td class="cell" id="Td6">
          <h3> <%= md._P4%></h3> 
         </td>
      </tr>
      <% } %>
    <tr style="text-align: center; font-size: 6em; font-weight: bolder;  line-height: 120px;" class="head">
                  <td id="ply1" style="border:2px solid black !important;"  >
                      <%= md._Ply1 %>
                     </td>
                  <td id="ply2" style="border:2px solid black !important;" >
                     <%= md._Ply2 %>
                  </td>
               </tr>

               <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
           Standard Update
         </td>
         <td class="cell">
        <%=md._infModBy %>
         </td>
         </tr>
         <tr>
            <td class="col cell" style="padding: 10px 0px; width: 25%;">
           Valid
         </td>
         <td class="cell">
        <%=md._infModDt %>
         </td>
      </tr>
     </table>            
            </td>
      </tr>
   </table>
          <% if (WinNemoLib.StrUtil.IsNotEmpty(second._plandt))
         {%>
   <table width="98%" class="shadow">
      <tr class="rowa">
         <td class="cell head" style="font-size: x-large;line-height: 30px; 
            padding: 5px; background-color: #C38DEC;" colspan="3">
            NEXT PLAN
         </td>
         <td class="cell head">
         <%= second._topcrdcd %>
         </td>
           <td class="cell head">
         <%= second._sizes %>
         </td>
        <td class="cell head">
         <%= second._forming %>
         </td>
       <% if ((second._Ply1 == "P1") || (second._Ply2 == "P1"))
            { %>
        <td class="cell head">P1</td>
         <% } %>
            <% if ((second._Ply1 == "P2") || (second._Ply2 == "P2"))
            { %>
           <td class="cell head">P2</td>
            <% } %>
          <% if ((second._Ply1 == "P3") || (second._Ply2 == "P3"))
            { %>
          <td class="cell head">P3</td>
         <% } %>
             <% if ((second._Ply1 == "P4") || (second._Ply2 == "P4"))
            { %>
          <td class="cell head">P4</td>
         <% } %>
          <td  class="cell"style="width:50%">
             </td>
      </tr></table>
      <%} %>

</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
    <section class="featured">

 <div class="content-wrapper" style="height:40px">
            <hgroup class="title float-left">
            <h2>Bias Tail Computer</h2>
                <h2  style="padding-left:55px;">BIAS NO.<%: TireBias.Models.SessionBag.Current.biasno %></h2>      
               
            </hgroup> 
             <hgroup class="title float-right">
                <h3>
         Name :
         <% if (Request.IsAuthenticated)
            { %>
         <%:  User.Identity.Name %>
         <% } %></h3>
            </hgroup>   
 </div>
 </section>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="TableContent" runat="server">
    <div style="clear: left; margin-top: 15px; ">

      <div class="float-left" style="margin-left: 50px;">
          <input type="button" id="back" value="BACK" class="btnFooter"  
              style="height: 75px;  width: 350px;" />
        
      </div>

      <div style="float:right; margin-right:50px;">
        <input id="next" type="button" value="NEXT" class="btnFooter" 
              style="height: 75px; width: 350px;" />
      </div>
   </div>
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="ScriptsSection" runat="server">
    <script type="text/javascript">

    $(function () {
        $("#next").click(function () {
            var nextURL = '<%= Url.Action("GET_STD","BiasTail") %>';
            window.location = nextURL;
        });

        $("#back").click(function () {
            var nextURL = '<%= Url.Action("Index","BiasTail") %>';
            window.location = nextURL;
        });
    });

</script>
</asp:Content>
